@import '~ng-devui/styles-var/devui-var.scss';

.collection-item {
  background: $devui-base-bg;
  margin-bottom: 30px;
  display: inline-block;
  vertical-align: top;
  width: 23.5%;
  border: 1px solid #23252d;
  border-radius: 2px;
  padding: 19px 0;
  overflow: hidden;
  color: $devui-text;

  &:hover {
    background-color: rgba(35, 37, 45, 0.5);
  }

  .apply {
    ::ng-deep button {
      background-color: unset;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
  }

  ::ng-deep d-button {
    height: 40px;
  }

  .item-title {
    padding: 0 19px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    height: 16px;

    span {
      font-size: 12px;
      margin-left: 5px;
    }
  }

  .item-top {
    display: flex;
    align-items: center;
    margin: 16px 0;
    padding: 0 19px;
    font-size: 14px;

    .avatar {
      width: 32px;
      height: 32px;
      margin-right: 16px;

      img {
        width: 100%;
        border-radius: 2px;
      }
    }
  }

  &:nth-of-type(4n),
  &:nth-of-type(4n + 2),
  &:nth-of-type(4n + 3) {
    margin-left: 27px;
  }

  ::ng-deep .devui-btn {
    width: 140px;
    height: 40px;
    border-radius: 2px;
  }

  .item-middle {
    margin-top: 17px;
    padding: 0 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;

    .btn-disabled {
      border: 1px solid rgba(255, 255, 255, 0.2) !important;

      ::ng-deep button {
        background-color: unset;
      }

      ::ng-deep span {
        color: rgba(255, 255, 255, 0.4) !important;
      }
    }
  }

  .description {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 16px;
  }

  .left-num {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
  }

  .big-img {
    width: 89.84%;
    aspect-ratio: 1;
    margin: 0 19px;
    border-radius: 2px;
  }
}

.active {
  color: #fff;
}
